package com.company.gjtx.news.bean;

import java.util.Date;

import com.company.gjtx.login.bean.TbUser;

/**
 * TbNews entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class TbNews implements java.io.Serializable {

	// Fields

	private Long newsid;
	private TbUser tbUser;
	private String newstitle;
	private String newsfrom;
	private String newsnote;
	private Date newstime;

	// Constructors

	/** default constructor */
	public TbNews() {
	}

	/** minimal constructor */
	public TbNews(Long newsid) {
		this.newsid = newsid;
	}

	/** full constructor */
	public TbNews(Long newsid, TbUser tbUser, String newstitle,
			String newsfrom, String newsnote, Date newstime) {
		this.newsid = newsid;
		this.tbUser = tbUser;
		this.newstitle = newstitle;
		this.newsfrom = newsfrom;
		this.newsnote = newsnote;
		this.newstime = newstime;
	}

	// Property accessors

	public Long getNewsid() {
		return this.newsid;
	}

	public void setNewsid(Long newsid) {
		this.newsid = newsid;
	}

	public TbUser getTbUser() {
		return this.tbUser;
	}

	public void setTbUser(TbUser tbUser) {
		this.tbUser = tbUser;
	}

	public String getNewstitle() {
		return this.newstitle;
	}

	public void setNewstitle(String newstitle) {
		this.newstitle = newstitle;
	}

	public String getNewsfrom() {
		return this.newsfrom;
	}

	public void setNewsfrom(String newsfrom) {
		this.newsfrom = newsfrom;
	}

	public String getNewsnote() {
		return this.newsnote;
	}

	public void setNewsnote(String newsnote) {
		this.newsnote = newsnote;
	}

	public Date getNewstime() {
		return this.newstime;
	}

	public void setNewstime(Date newstime) {
		this.newstime = newstime;
	}

}